package com.huangpeng.algorithm.concurrentProgram;

/**
 * @Author huangpeng
 * @Title 面试题测试
 * @Package
 * @Date 2021/8/17 9:51
 * @Description
 * @Version 1.0
 */
class A {
    static int i = 0;
    static{
        System.out.println("A");
    }
}
class B{
    public A a = new A();
    B(){
        System.out.println("C");
    }
    static final int n = 1;
    static{
        System.out.println("B");
    }
}

class D{
    public static void main(String[] args){
        System.out.println(B.n);
        System.out.println(A.i);
        new B();

        MyLamda m = y -> System.out.println("ss" + y);
        System.out.println(m.test2());
    }
}
